package com.sdlg.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_role_menu")
public class RoleMenu implements Serializable {

    private static final long serialVersionUID = 1L;


    private Integer roleId;

    private Integer menuId;


    //声明关系表对象
    @TableField(exist = false)
    private Role role;

    @TableField(exist = false)
    private Menu menu;

}
